﻿<%@ Page Language="C#" AutoEventWireup="true" CodeFile="FeedBlocking.aspx.cs" Inherits="FeedBlocking"
    MasterPageFile="~/Default.master" EnableViewState="false" %>

<%@ Register Assembly="DevExpress.Web.ASPxGridView.v9.2, Version=9.2.9.0, Culture=neutral, PublicKeyToken=b88d1754d700e49a"
    Namespace="DevExpress.Web.ASPxGridView" TagPrefix="dxwgv" %>

<%@ Register Assembly="DevExpress.Web.v9.2, Version=9.2.9.0, Culture=neutral, PublicKeyToken=b88d1754d700e49a"
    Namespace="DevExpress.Web.ASPxCallback" TagPrefix="dxcb" %>
<asp:Content ContentPlaceHolderID="head" ID="hd" runat="server" EnableViewState="false">
    <script src="FeedBlocking.js" type="text/javascript"></script>

    

    <script src="js/LOV.js" type="text/javascript"></script>

    <link href="FeedBlocking.css" rel="stylesheet" type="text/css" />
</asp:Content>
<asp:Content ContentPlaceHolderID="leftMenu" ID="leftnav" runat="server" EnableViewState="false">
    <% Response.Write(GenerateSideMenu()); %>
    
</asp:Content>
<asp:Content ContentPlaceHolderID="content" ID="ctnFeedBlocking" runat="server"
    EnableViewState="false">
    <div id="pnlTitle" runat="server"></div>
    <fieldset class="m_fs_border" id="fs_Customer">
        <legend>
            <a class="lnk" href="javascript:toggle('Customer');">
                Costumer News Feed Blocked List</a>
        </legend>
        <dl class="m_fs">
            <div id="div_Customer">
                <dxwgv:ASPxGridView ID="dgCustomer" ClientInstanceName="dgCustomer_c" runat="server" 
                    AutoGenerateColumns="true" KeyFieldName="ID" 
                    oncustomcallback="dgCustomer_CustomCallback" Width="100%">
                    <Settings ShowFilterRow="true" ShowFilterRowMenu="true" />
                    <SettingsPager PageSize="10"></SettingsPager>
                    <SettingsBehavior AllowSort="true" />
                    <Styles Cell-VerticalAlign="Middle" Cell-HorizontalAlign="Left" Header-HorizontalAlign="Center" AlternatingRow-Enabled="True" Cell-Wrap="true" Header-Wrap="true" Header-Font-Bold="true">
                    <AlternatingRow Enabled="True"></AlternatingRow>
                    <Cell Wrap="True" Font-Size="Smaller"></Cell>
                    </Styles>
                    <Columns>
                        <dxwgv:GridViewCommandColumn Caption="#" Width="25px" ShowSelectCheckbox="true"></dxwgv:GridViewCommandColumn>
                        <dxwgv:GridViewDataTextColumn FieldName="NAME" Name="Customer" CellStyle-HorizontalAlign="Left">
                            <DataItemTemplate>
                            <a href="CompanyProfile.aspx?cid=14868">
					            <img src="upload/company/<%# Eval("ID").ToString() %>.jpg" alt="" class="avatar" onerror="setEmptyCompanyAvatar(this);" />
				            </a>&nbsp; <%# Eval("NAME").ToString() %>
                            </DataItemTemplate>
                            <EditFormSettings Visible="False"/>
                        </dxwgv:GridViewDataTextColumn>
                    </Columns>
                </dxwgv:ASPxGridView>
                <input type="button" id="btnUnblock_Customer" class="btn" onclick="UnblockCustomer();" value="Unblock Customer" style="width:150px;"/>
            </div>
        </dl>
    </fieldset>
    
    <fieldset class="m_fs_border" id="fs_User">
        <legend>
            <a class="lnk" href="javascript:toggle('User');">
                User News Feed Blocked List</a>
        </legend>
        <dl class="m_fs">
            <div id="div_User">
                <dxwgv:ASPxGridView ID="dgUser" ClientInstanceName="dgUser_c" runat="server" 
                    AutoGenerateColumns="true" KeyFieldName="ID" 
                    oncustomcallback="dgUser_CustomCallback" Width="100%">
                    <Settings ShowFilterRow="true" ShowFilterRowMenu="true" />
                    <SettingsPager PageSize="10"></SettingsPager>
                    <SettingsBehavior AllowSort="true" />
                    <Styles Cell-VerticalAlign="Middle" Cell-HorizontalAlign="Left" Header-HorizontalAlign="Center" AlternatingRow-Enabled="True" Cell-Wrap="true" Header-Wrap="true" Header-Font-Bold="true">
                    <AlternatingRow Enabled="True"></AlternatingRow>
                    <Cell Wrap="True" Font-Size="Smaller"></Cell>
                    </Styles>
                    <Columns>
                        <dxwgv:GridViewCommandColumn Caption="#" Width="25px" ShowSelectCheckbox="true"></dxwgv:GridViewCommandColumn>
                        <dxwgv:GridViewDataTextColumn FieldName="NAME" Name="User" CellStyle-HorizontalAlign="Left">
                            <DataItemTemplate>
                            <a href="CompanyProfile.aspx?cid=14868">
					            <img src="upload/avatar/<%# Eval("ID").ToString() %>.jpg" alt="" class="avatar" onerror="setEmptyUserAvatar(this);" />
				            </a>&nbsp; <%# Eval("NAME").ToString() %>
                            </DataItemTemplate>
                            <EditFormSettings Visible="False"/>
                        </dxwgv:GridViewDataTextColumn>
                    </Columns>
                </dxwgv:ASPxGridView>
                <input type="button" id="btnUnblock_User" class="btn" onclick="UnblockUser();" value="Unblock User" style="width:120px;"/>
            </div>
        </dl>
    </fieldset>
</asp:Content>
